﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UReturnVisitEdit.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UReturnVisitEdit" %>

<style>
    .returncont td{ line-height:22px; height:22px;}
     .returncont label{ width:150px!important;}
     .returncont .red{color:Red; font-weight:bold;}
</style>
<script>
    function UReturnCancelU4(U4RID) {
        var $data = {};
        $data["U4RID"] = U4RID;
        $data["ajaxmethod"] = "cancelu4";
        $.ajax({
            type: 'post',
            url: "UserModel/UReturnVisitEdit.aspx",
            data: $data,
            async: true,
            cache: false,
            dataType: "text",
            success: function (json) {
                try {
                    if (json != "") {
                        alertMsg.error("处理失败！");
                    }
                    else {
                        alertMsg.correct('已成功处理！');
                        navTab.closeCurrentTab()

                    }
                }
                catch (e) {

                }
            }
        });
    }
</script>
<h2 class="contentTitle" style="text-align: center;">
    新交机一周内回访表单<span>(回访时间控制在3分钟之内)</span>
</h2>
<div class="pageContent">
    <form id="Form1" action="UserModel/UReturnVisitEdit.aspx?ajaxmethod=edit&UWCID=<%=UWCID %>" class="pageForm required-validate"
    onsubmit="return validateCallback(this,navTabAjaxDone);">
    <div class="pageFormContent" layouth="100">
        <h1>一、回访用语：</h1>
        <table class="returncont">
            <tr>
                <td>
                    【<a  href="UserModel/UWarrantyCardView.aspx?UWCID=<%=UWCID %>" target="dialog" max=false  mask=false  maxable=true  minable=true  resizable=true drawable=true  width="620" height="550" title="查看保修卡" rel="UWarrantyCardViewReutrn"><span class="red"><%=obj.CustomerName %></span></a>】
                    老板/女士，您好！我是石川岛中骏公司厂家客户服务人员，您的购机资料已经存在我公司的电脑档案里了，此次是新购机的第一次回访。耽误您几分钟时间，想对您使用机器的情况做个了解,以提升我们的服务质量。
                </td>
                
            </tr>
         </table>
         <div class="divider">
        </div>
        <h1>二、回访内容</h1>
        <table class="returncont">
             <tr>
                <td>
                    <table>
                        <tr>
                            <td> 您机器当前的工作时间:</td>
                            <td>
                                <input type="text" name="WorkTime" value="<%=obj2.WorkTime %>" /> 
                            </td> 
                        </tr>
                    </table>                   
                </td>       
           </tr>
           <%-- <tr>
                <td>
                 1、<span class="red"><%=obj.AgentName %></span>经销商是否已经为您完成了首次50小时的保养?<input type="checkbox" name="KeepGood50" value="true" <%=obj2.KeepGood50?"checked":"" %> />   
                 </td>               
           </tr>
           <tr>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;若没有完成，有没有与您预约好保养时间？<input type="checkbox" name="OrderKeepGood50" value="true" <%=obj2.OrderKeepGood50?"checked":"" %>/> 
            </td>
           </tr>--%>

            <tr>
                <td colspan="2">
                    1、<span class="red"><%=obj.AgentName %></span>经销商是否有服务人员在现场为您交机？?<input type="checkbox" name="XianChang" value="true" <%=obj2.XianChang?"checked":"" %>/> 
                </td>
           </tr>
           <tr>
                <td colspan="2">
                    2、服务人员有没有请您在“交机服务单”和“保修卡”上签字？<input type="checkbox" name="QianZhi" value="true" <%=obj2.QianZhi?"checked":"" %>/> 
                </td>
           </tr>
           <tr>
                <td colspan="2">
                    3、您对<span class="red"><%=obj.AgentName %></span>经销商服务人员关于机器正确操作与保养的讲解满意吗？<input type="checkbox" name="JianJie" value="true" <%=obj2.JianJie?"checked":"" %>/> 
                </td>
           </tr>
           <tr>
                <td colspan="2">
                    4、您对服务人员的服务态度满意吗?
                    <input  type="radio" name="Guide" value="4" <%=obj2.Guide==4?"checked":"" %>/>非常满意
                    <input  type="radio" name="Guide" value="3" <%=obj2.Guide==3?"checked":"" %>/>满意
                    <input  type="radio" name="Guide" value="2" <%=obj2.Guide==2?"checked":"" %>/>一般
                    <input  type="radio" name="Guide" value="1" <%=obj2.Guide==1?"checked":"" %>/>不满意
                    <input  type="radio" name="Guide" value="0" <%=obj2.Guide==0?"checked":"" %>/>恶劣
                </td>
           </tr>

         <%--  <tr>
                <td>
                    6、您对机器的品质是否感到满意?<input type="checkbox" name="Quality" value="true"  <%=obj2.Quality?"checked":"" %>/> 
                </td>
           </tr>--%>
           <tr>
            <td  colspan="2"> 5.在使用机器的过程中，有哪些是您觉得不满意的?</td>
           </tr>
          <%-- <tr>
                <td>
                   
                    <label><input type="checkbox" name="Usability_speed" value="true" <%=obj2.Usability_speed?"checked":"" %>/>①工作装置动作速度慢;</label>
                    <label><input type="checkbox" name="Usability_power" value="true" <%=obj2.Usability_power?"checked":"" %>/>②挖掘力小;</label>
                    <label><input type="checkbox" name="Usability_oil" value="true" <%=obj2.Usability_oil?"checked":"" %>/>③柴油油耗高;</label>
                    <label><input type="checkbox" name="Usability_keep" value="true" <%=obj2.Usability_keep?"checked":"" %>/>④保养不方便;</label>
                    <label><input type="checkbox" name="Usability_space" value="true" <%=obj2.Usability_space?"checked":"" %>/>⑤驾驶室空间小;</label>
                    <label><input type="checkbox" name="Usability_operation" value="true" <%=obj2.Usability_operation?"checked":"" %>/>⑥操作抖动大;</label>
                    <label><input type="checkbox" name="Usability_bug" value="true" <%=obj2.Usability_bug?"checked":"" %>/>⑦故障率高;</label>
                </td>
           </tr>--%>
           <tr>
               <td class="onUReturnVisitAddUsabilityClickedit">
                     <input type="hidden" id="Usability_physical_detail_edit" name="Usability_Detail" value="<%=GetUWCIDDetail %>" />
                    <label><input type="checkbox" name="Usability_machine" value="true" detailid="Usability_machine_detail_edit" ParId="1"  <%=obj2.Usability_machine?"checked":"" %>/>①机器性能;</label>
                   <%-- <input type="hidden" id="Usability_machine_detail_edit" name="Usability_Detail" value="" />
--%>
                    <label><input type="checkbox" name="Usability_engine" value="true" detailid="Usability_engine_detail_edit" ParId="2"  <%=obj2.Usability_engine?"checked":"" %>/>②发动机系统;</label>
                   <%-- <input type="hidden" id="Usability_engine_detail_edit" name="Usability_Detail" value="" />--%>

                    <label><input type="checkbox" name="Usability_electric" value="true" detailid="Usability_electric_detail_edit" ParId="3"  <%=obj2.Usability_electric?"checked":"" %>/>③电气系统;</label>
                   <%-- <input type="hidden" id="Usability_electric_detail_edit" name="Usability_Detail" value="" />--%>

                    <label><input type="checkbox" name="Usability_hydraumatic" value="true" detailid="Usability_hydraumatic_detail_edit" ParId="4"  <%=obj2.Usability_hydraumatic?"checked":"" %>/>④液压系统;</label>
                  <%--  <input type="hidden" id="Usability_hydraumatic_detail_edit" name="Usability_Detail" value="" />--%>

                    <label><input type="checkbox" name="Usability_air" value="true" detailid="Usability_air_detail_edit" ParId="5"  <%=obj2.Usability_air?"checked":"" %>/>⑤空调系统;</label>
                   <%-- <input type="hidden" id="Usability_air_detail_edit" name="Usability_Detail" value="" />--%>

                    <label><input type="checkbox" name="Usability_physical" value="true" detailid="Usability_physical_detail_edit" ParId="6"  <%=obj2.Usability_physical?"checked":"" %>/>⑥机器性能机械结构件系统</label>
                   <%-- <input type="hidden" id="Usability_physical_detail_edit" name="Usability_Detail" value="" />--%>
                    <script>
                        $(document).ready(function () {
                            $("td.onUReturnVisitAddUsabilityClickedit").find("input:checkbox").click(function () {
//                                if (!$(this).attr("checked")) {
//                                    $("#" + $(this).attr("detailid")).val("")
//                                    return;
//                                }

                                //$("#" + $(this).attr("detailid")).val("1")
                                //alert($("#" + $(this).attr("detailid")).val() )
                                var rel = "UReturnVisitDetailUReturnVisitDetailSelect";
                                var url = "UserModel/UReturnVisitDetailSelect.aspx?Par_detailid=Usability_physical_detail_edit&ParId=" + $(this).attr("ParId") + "&otherRemark=Usability_otherRemark";
                                var title = "选择不满足项目";
                                var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
                                top.$.pdialog.open(url, rel, title, options);
                            })
                        })
                        
                    </script>
                </td>
                
           </tr>
           <tr>
            <td>
               6、其它问题记录
            </td>
           </tr>
           <tr>
            <td>
                <textarea id="Usability_otherRemark" name="otherRemark" cols="50" rows="10">  <%=obj2.otherRemark%></textarea>             
            </td>
           </tr>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td>
                             转办技师:                 
                            </td>   
                            <td>
                            <input type="hidden" name="dwz.orgLookup.UserName" class="" value="<%=obj3.UserName %>" />
                                <a class="btnLook" href="SysBasic/OUserLookUp.aspx?RoleId=9,11,12"  lookupgroup="orgLookup"
                                    maxable="false" width="500" resizable="false" title="服务部技师">
                                    <hi:text key="查找带回" />
                                </a>
                                <input type="text" name="dwz.orgLookup.RealName" class=" textInput" alt=""  readonly="true"  value="<%=obj4.RealName %>"/>
                                &nbsp;
                                <a href="#" onclick="UReturnCancelU4(<%=obj3.U4RID %>)">取消转办</a>
                            </td>   
                        </tr>
                    </table>
                </td>         
           </tr>           
           
        </table>
        <h1>三、结语</h1>
         <table class="returncont">
             <tr>
                <td>
                    感谢您的热情配合，如果在使用中遇到问题，请及时拨打4008客户服务热线。。
                </td>
           </tr>
         </table>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            保存</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            关闭</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>